-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: skip dependencies on openshift platform #1921
fix: skip dependencies on openshift platform #1921
Conversation
Signed-off-by: Benedikt Bongartz <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1921 +/- ##
=======================================
Coverage 88.25% 88.26%
=======================================
Files 100 100
Lines 6303 6307 +4
=======================================
+ Hits 5563 5567 +4
Misses 543 543
Partials 197 197
Continue to review full report at Codecov.
|
@@ -213,6 +213,13 @@ func EsScriptEnvVars(opts v1.Options) []corev1.EnvVar { | |||
envs = append(envs, corev1.EnvVar{Name: x.envVar, Value: val}) | |||
} | |||
} | |||
|
|||
if val, ok := options["skip-dependencies"]; ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add the environment var if the option is specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For cronjobs, only selected parameters are passed as environment variables. Here we pass user settings if they exist. If no user settings are present and the operator runs on openshift, we set skip-dependencies=true
.
Details: #1896 (comment)
Signed-off-by: Benedikt Bongartz [email protected]
Which problem is this PR solving?
Short description of the changes
cc @rubenvp8510